package com.mybook.app.exception;

import com.mybook.app.error.Error;

/**
 * 查询数据为空
 */
public class DataIsEmptyException extends WebException {
    private static final long serialVersionUID = -6664597933525995502L;

    @Override
    public Error getCode() {
        return Error.DATA_IS_EMPTY;
    }

    @Override
    public String getErrorMessage() {
        return getCode().getMessage();
    }
}
